<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <title>芯芝麻APP</title>
    <link rel="stylesheet" href="/static/mobile/css/index.css">
    <link rel="stylesheet" href="/static/mobile/css/account_progress_default.css">
    <link rel="stylesheet" href="/static/mobile/css/account_progress_styles.css">
    <link rel="stylesheet" href="/static/awesome/css/font-awesome.css">
    <link rel="stylesheet" href="/static/jweui/lib/weui.min.css">
    <link rel="stylesheet" href="/static/jweui/css/jquery-weui.css">
    <link rel="stylesheet" href="/static/mobile/iconfont/iconfont.css">

    <script src="/static/mobile/js/jquery-3.3.1.min.js"></script>
</head>
<body>
<div id="index_contents">

</div>
<div class="footer">
    <a class="btn_home"><i class="font_family icon-shouye"></i><span>首页</span></a>
    <a class="btn_info"><i class="font_family icon-zixun"></i><span>资讯</span></a>
    <a class="btn_share"><i class="font_family icon-fenxiang" ></i><span>分享</span></a>
    <a class="btn_me"><i class="font_family icon-wode"></i><span>我的</span></a>
</div>

{include file="./static/cs-ui/files/keewindow.html" /}

</body>
<script src="/static/cs-ui/js/common.js"></script>
<script src="/static/jweui/js/jquery-weui.js"></script>
<script src="/static/mobile/js/vue.min.js"></script>
<script src="/static/mobile/js/fastclick.js"></script>
<script src="/static/mobile/js/global.js"></script>

</html>
<script>
    $(function() {
        //#index_contents的高度
        // $.showLoading();
        var screenheight = document.documentElement.clientHeight;
        $('#index_contents').height(screenheight - 60);

        //判断需要的弹出框
        // var route='';
        // if(route && route!="")
        // {
        //     //console.log(route);
        //     var winname="win_"+route;
        //     var title="提示信息";
        //     var url="";
        //     CreateKeeWindow.createKeeWindow("keewindow",winname);
        //     switch (route) {
        //         case "":
        //             break;
        //
        //         default:
        //             break;
        //     }
        //
        //     CreateKeeWindow.setTitle(winname,title);
        //     $("#"+winname+"_contents").load(url,{},function () {
        //         $.hideLoading();
        //     })
        //     CreateKeeWindow.showKeeWindow(winname);
        //
        // }



        //footer事件；

        $('#index_contents').load("{:url('mobile/index/home')}", {}, function (data, status) {
            $.hideLoading();
        })

        $('.footer .btn_home').on("click", function () {
            $.showLoading();
            $('#index_contents').load("{:url('mobile/index/home')}", {}, function (data, status) {
                $.hideLoading();
            })
        })

        $('.footer .btn_info').on("click", function () {
            $.showLoading();
            $('#index_contents').load("{:url('mobile/index/info')}", {}, function (data, status) {
                $.hideLoading();
            })
        })
        $('.footer .btn_share').on("click", function () {
            $.showLoading();
            $('#index_contents').load("{:url('mobile/index/share')}", {}, function (data, status) {
                $.hideLoading();
            })
        })

        $('.footer .btn_me').on("click", function () {
            $.showLoading();
            $('#index_contents').load("{:url('mobile/index/me')}", {}, function (data, status) {
                $.hideLoading()
            })
        })
    })
</script>

